import axios from '../../utils/request'
// 创建员工信息
export const employeeCreate = (data) =>
{
    return axios({
        method: 'post',
        url: '/employee/create',
        data
    })
}
// 编辑员工
export const employeeUpdate = (data) =>
{
    return axios({
        method: 'post',
        url: '/employee/update',
        data
    })
}
// 员工列表
export const employeeRead = (data) =>
{
    return axios({
        method: 'post',
        url: '/employee/read',
        data
    })
}
// 员工列表
export const employeeReadList = (data) =>
{
    return axios({
        method: 'post',
        url: '/employee/readAll',
        data
    })
}

// 删除员工
export const employeeDelete = (data) =>
{
    return axios({
        method: 'post',
        url: '/employee/delete',
        data
    })
}
// 获取所有的员工姓名
export const findAllemployeeName = (data) =>
{
    return axios({
        method: 'post',
        url: '/employee/findAllemployeeName',
        data
    })
}

